/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.penguin.modules.field.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 指派任务Entity
 * @author 余小凡
 * @version 2015-05-22
 */
public class FieldAssignedTask extends DataEntity<FieldAssignedTask> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String leven;		// 级别
	private Integer cnumber;		// 任务单数
	private String excuteTime;		// 执行时间
	private String state;		// 状态
	private String image;		// 照片
	private String describes;		// 描述
	private User user;		// 任务执行人
	private User audit;		// 审核人
	private String form;		// 是否填写表单
	private String address;		//任务地址
	public FieldAssignedTask() {
		super();
	}

	public FieldAssignedTask(String id){
		super(id);
	}

	@Length(min=0, max=200, message="标题长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=1, message="级别长度必须介于 0 和 1 之间")
	public String getLeven() {
		return leven;
	}

	public void setLeven(String leven) {
		this.leven = leven;
	}
	
	public Integer getCnumber() {
		return cnumber;
	}

	public void setCnumber(Integer cnumber) {
		this.cnumber = cnumber;
	}
	
	@Length(min=0, max=20, message="执行时间长度必须介于 0 和 20 之间")
	public String getExcuteTime() {
		return excuteTime;
	}

	public void setExcuteTime(String excuteTime) {
		this.excuteTime = excuteTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=1024, message="照片长度必须介于 0 和 1024 之间")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	@Length(min=0, max=4000, message="描述长度必须介于 0 和 4000 之间")
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public User getAudit() {
		return audit;
	}

	public void setAudit(User audit) {
		this.audit = audit;
	}
	
	@Length(min=0, max=1, message="是否填写表单长度必须介于 0 和 1 之间")
	public String getForm() {
		return form;
	}

	public void setForm(String form) {
		this.form = form;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}